<?php

namespace Xrfg\Api\Trading\Spot\Resources;

use App\Http\Resources\Resource;
use Xrfg\Core\Trading\Spot\Models\Pair;

class SymbolV2Resource extends Resource
{
    public function toArray($request)
    {
        /* @var Pair $this */
        return [
            'id' => $this->id,
            'symbol' => $this->symbol,
            'status' => $this->status,
            'coin_name' => $this->coin_name,
            'coin_id' => $this->coin_id,
            'market_name' => $this->market_name,
            'market_id' => $this->market_id,
            'price_decimals' => $this->coin_decimals,
            'price_step' => $this->price_step,
            'number_decimals' => $this->market_decimals,
            'number_step' => $this->number_step,
            'number_min' => $this->number_min,
            'total_min' => $this->total_min,
        ];
    }
}
